The coordinates are already widget-local here, not transformed by the
adjustment positions. Using the adjustment value here ends up pushing
the entry far from the left border.
The correct minimum value here is 0, which matches the treeview left
border.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3009
* preferring the top left corner (for RTL)
* or top right corner (for LTR)
*/
- min_x = gtk_adjustment_get_value (priv->hadjustment);
+ min_x = 0;
max_x = min_x + width - child_rect.width;
min_y = 0;
- max_y = min_y + height - gtk_tree_view_get_effective_header_height (tree_view) - child_rect.height;
+ max_y = min_y + height - gtk_tree_view_get_effective_header_height (tree_view) - child_rect.height;
if (direction == GTK_TEXT_DIR_LTR)
/* Ensure that child's right edge is not sticking to the right